package com.cy.dda.model.ao.rule;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

import com.cy.dda.comm.constant.RegexContants;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 后台管理员登录
 *
 * @author: tanyilin
 * @create: 2018年10月31日 下午6:23:47
 */
@Data
@ApiModel("后台管理员登录")
public class ManagerLoginAO {

	@ApiModelProperty(value = "手机号码", required = true)
    @NotEmpty(message = "手机号码不可为空")
	@Pattern(regexp = RegexContants.MOBILE, message = "手机号码格式不正确")
    private String mobile;

    @ApiModelProperty(value = "密码", required = true)
    @NotEmpty(message = "密码不可为空")
    private String password;
}
